package com.bootdo.goods.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.goods.dao.TGoodsAllocationAloneDao;
import com.bootdo.goods.domain.TGoodsAllocationAloneDO;
import com.bootdo.goods.service.TGoodsAllocationAloneService;



@Service
public class TGoodsAllocationAloneServiceImpl implements TGoodsAllocationAloneService {
	@Autowired
	private TGoodsAllocationAloneDao tGoodsAllocationAloneDao;
	
	@Override
	public TGoodsAllocationAloneDO get(String id){
		return tGoodsAllocationAloneDao.get(id);
	}
	
	@Override
	public List<TGoodsAllocationAloneDO> list(Map<String, Object> map){
		return tGoodsAllocationAloneDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return tGoodsAllocationAloneDao.count(map);
	}
	
	@Override
	public int save(TGoodsAllocationAloneDO tGoodsAllocationAlone){
		return tGoodsAllocationAloneDao.save(tGoodsAllocationAlone);
	}



	
	@Override
	public int update(TGoodsAllocationAloneDO tGoodsAllocationAlone){

		return tGoodsAllocationAloneDao.update(tGoodsAllocationAlone);
	}
	
	@Override
	public int remove(String id){
		return tGoodsAllocationAloneDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		System.out.println("aaa");


		return tGoodsAllocationAloneDao.batchRemove(ids);
	}

	@Override
	public TGoodsAllocationAloneDO selectGoodsMsg(String allocationNumber, Long goodsId) {
		
		return tGoodsAllocationAloneDao.selectGoodsMsg(allocationNumber,goodsId);
	}

	@Override
	public TGoodsAllocationAloneDO allocationGoods(Map<String, Object> map) {
		return tGoodsAllocationAloneDao.allocationGoods(map);
	}

}
